#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;

class Person
{
public:
	Person(const char* name)
		: _name(name)
	{
		cout << "Person()" << endl;
	}
	~Person()
	{
		cout << "~Person()" << endl;
	}
private:
	string _name;
};

class Student : public Person
{
public: 
    Student(int num, const char* name)
        : _num(num), Person(name)
    {
        cout << "Student()" << endl;
    }
    ~Student() 
    {
        cout << "~Student()" << endl;
    }
private:
    int _num;
};

int main() 
{
    Student s(1, "37");
    return 0;
}